using System;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.InputSystem;

public class ObjA : MonoBehaviour, I_Observer
{
    public void CowBSkill()
    {
        Debug.Log("牛逼技能");
    }
    void OnEnable()
    {
        EventCenterExample.Instance.AddEvent("ObjA",CowBSkill);
    }
    void OnDisable()
    {
        EventCenterExample.Instance.RemoveEvent("ObjA",CowBSkill);
    }
    
}




public class ObjC : I_Observer
{
    public void CowBSkill()
    {
        Debug.Log("牛逼技能2");
    }

}

